import React from 'react';

const withClass = (WrappedComponent, className) => {
  return props => {
    return (
      <span className={className}>
        <WrappedComponent {...props} />
      </span>
    );
  };
};

export default withClass;
